package day3.demo4_join;

public class A implements Runnable{
    Thread b;
    @Override
    public void run() {
        try {
            b.join(500);
        } catch (InterruptedException e) {}
        int i = 0;
        while (i<100){
            System.out.println(Thread.currentThread().getName()+":"+i++);
        }
    }
}
